package five.autoview.activity;

import android.app.Activity;
import android.os.Bundle;

import java.util.Timer;
import java.util.TimerTask;

import five.autoview.R;
import five.autoview.myview.BallMoveView;

/**
 * Created by rilintech on 16/6/16.
 */

public class BallActivity extends Activity{
    private BallMoveView ballMoveView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ball);

        ballMoveView = (BallMoveView) findViewById(R.id.ballview);
        new Timer().schedule(new TimerTask() {
            @Override
            public void run() {
                ballMoveView.postInvalidate();
            }
        }, 200, 50);
    }
}
